package edu.mobbuzz.bean;

public class Message extends BaseBean {
    public static final int TYPE_INBOX = 0;
    public static final int TYPE_REPORT = 1;

    private String source;
    private String guid;
    private String title;
    private String description;
    private String link;
    private String pubdate;

    private int recId;      
    private String date;
    private int type;
    private boolean read;

    public Message(int recId, String source, String guid, String title, String description, String link, String pubDate,
                   String date, int type, boolean read){
        this.recId = recId;
        this.source = source;
        this.guid = guid;
        this.title = title;
        this.description = description;
        this.link = link;
        this.pubdate = pubDate;        
        this.date = date;
        this.type = type;
        this.read = read;
    }
    
    public Message(){}

    /**
     * @return the source
     */
    public String getSource() {
        return source;
    }

    /**
     * @param source the source to set
     */
    public void setSource(String source) {
        this.source = source;
    }

    /**
     * @return the guid
     */
    public String getGuid() {
        return guid;
    }

    /**
     * @param guid the guid to set
     */
    public void setGuid(String guid) {
        this.guid = guid;
    }

    /**
     * @return the title
     */
    public String getTitle() {
        return title;
    }

    /**
     * @param title the title to set
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * @return the description
     */
    public String getDescription() {
        return description;
    }

    /**
     * @param description the description to set
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * @return the link
     */
    public String getLink() {
        return link;
    }

    /**
     * @param link the link to set
     */
    public void setLink(String link) {
        this.link = link;
    }

    /**
     * @return the pubdate
     */
    public String getPubdate() {
        return pubdate;
    }

    /**
     * @param pubdate the pubdate to set
     */
    public void setPubdate(String pubdate) {
        this.pubdate = pubdate;
    }

    /**
     * @return the recId
     */
    public int getRecId() {
        return recId;
    }

    /**
     * @param recId the recId to set
     */
    public void setRecId(int recId) {
        this.recId = recId;
    }

    /**
     * @return the date
     */
    public String getDate() {
        return date;
    }

    /**
     * @param date the date to set
     */
    public void setDate(String date) {
        this.date = date;
    }

    /**
     * @return the type
     */
    public int getType() {
        return type;
    }

    /**
     * @param type the type to set
     */
    public void setType(int type) {
        this.type = type;
    }

    /**
     * @return the read
     */
    public boolean isRead() {
        return read;
    }

    /**
     * @param read the read to set
     */
    public void setRead(boolean read) {
        this.read = read;
    }

    protected int getPrimaryKey() {
        return getRecId();
    }  
}